package com.giscloud.upload.dao;

import com.giscloud.upload.entity.Attachment;
import org.apache.ibatis.annotations.Param;
import com.giscloud.upload.entity.AttachmentExample;
import java.util.List;
import com.giscloud.datasource.core.DynamicDataSource;
/**
 * 附件表
 * 
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-10 15:39:39
 */
public interface AttachmentDao {
    @DynamicDataSource("ds1")
    long countByExample(AttachmentExample example);
    @DynamicDataSource("ds1")
    int deleteByExample(AttachmentExample example);
    @DynamicDataSource("ds1")
    int insert(Attachment record);
    @DynamicDataSource("ds1")
    int insertSelective(Attachment record);
    @DynamicDataSource("ds1")
    List<Attachment> selectByExample(AttachmentExample example);
    @DynamicDataSource("ds1")
    int updateByExampleSelective(@Param("record") Attachment record, @Param("example") AttachmentExample example);
    @DynamicDataSource("ds1")
    int updateByExample(@Param("record") Attachment record, @Param("example") AttachmentExample example);
    @DynamicDataSource("ds1")
    int updateByPrimaryKeySelective(Attachment record);
    @DynamicDataSource("ds1")
    int updateByPrimaryKey(Attachment record);
    @DynamicDataSource("ds1")
    Attachment selectByPrimaryKey(Integer attachmentId);
    @DynamicDataSource("ds1")
    Attachment selectOneByExample(AttachmentExample example);
    @DynamicDataSource("ds1")
    Attachment selectOneByExampleSelective(@Param("example") AttachmentExample example, @Param("selective") Attachment.Column... selective);
    @DynamicDataSource("ds1")
    Attachment selectByPrimaryKeySelective(Integer attachmentId, @Param("selective") Attachment.Column... selective);
    @DynamicDataSource("ds1")
    List<Attachment> selectByExampleSelective(@Param("example") AttachmentExample example, @Param("selective") Attachment.Column... selective);

}
